
package beans;

import java.io.Serializable;

/**
 * Classe TotalsPregunta
 * @author Juan Luís Chávez Lobato i Jesús Hernàndez Garcia
 */
public class TotalsPregunta implements Serializable {

    private String pregunta;
    private int totalsMoltDesacord;
    private int totalsMicaDesacord;
    private int totalsIndiferent;
    private int totalsMicaAcord;
    private int totalsMoltAcord;
    private String votEstudiant;

    public TotalsPregunta(String pregunta, int totalsMoltDesacord, int totalsMicaDesacord, int totalsIndiferent, int totalsMicaAcord, int totalsMoltAcord, String votEstudiant) {
        this.pregunta = pregunta;
        this.totalsMoltDesacord = totalsMoltDesacord;
        this.totalsMicaDesacord = totalsMicaDesacord;
        this.totalsIndiferent = totalsIndiferent;
        this.totalsMicaAcord = totalsMicaAcord;
        this.totalsMoltAcord = totalsMoltAcord;
        this.votEstudiant = votEstudiant;
    }

    public String getPregunta() {
        return pregunta;
    }

    public void setPregunta(String pregunta) {
        this.pregunta = pregunta;
    }

    public int getTotalsIndiferent() {
        return totalsIndiferent;
    }

    public void setTotalsIndiferent(int totalsIndiferent) {
        this.totalsIndiferent = totalsIndiferent;
    }

    public int getTotalsMicaAcord() {
        return totalsMicaAcord;
    }

    public void setTotalsMicaAcord(int totalsMicaAcord) {
        this.totalsMicaAcord = totalsMicaAcord;
    }

    public int getTotalsMicaDesacord() {
        return totalsMicaDesacord;
    }

    public void setTotalsMicaDesacord(int totalsMicaDesacord) {
        this.totalsMicaDesacord = totalsMicaDesacord;
    }

    public int getTotalsMoltAcord() {
        return totalsMoltAcord;
    }

    public void setTotalsMoltAcord(int totalsMoltAcord) {
        this.totalsMoltAcord = totalsMoltAcord;
    }

    public int getTotalsMoltDesacord() {
        return totalsMoltDesacord;
    }

    public void setTotalsMoltDesacord(int totalsMoltDesacord) {
        this.totalsMoltDesacord = totalsMoltDesacord;
    }

    public String getVotEstudiant() {
        return votEstudiant;
    }

    public void setVotEstudiant(String votEstudiant) {
        this.votEstudiant = votEstudiant;
    }
    
    public String toString(){
        StringBuffer resultat = new StringBuffer("");
        resultat.append(this.getPregunta() + "   ");
        resultat.append("MoltD_Count(" + this.getTotalsMoltDesacord() + ")   ");
        resultat.append("MicaD_Count(" + this.getTotalsMicaDesacord() + ")   ");
        resultat.append("Indif_Count(" + this.getTotalsIndiferent() + ")   ");
        resultat.append("MicaA_Count(" + this.getTotalsMicaAcord() + ")   ");
        resultat.append("MoltA_Count(" + this.getTotalsMoltAcord() + ")   ");
        resultat.append("Vot_Estudiant = " + this.getVotEstudiant() + "");
        return resultat.toString();
    }
    

}
